<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>block</title>
    <link rel="stylesheet" type="text/css" href="/static/css/block.css">
    <script type="text/javascript" src="/static/js/vue-2.5.16.js"></script>
    <script type="text/javascript" src="/static/js/axios-0.18.0.min.js"></script>
</head>
<body>
    <div>
        <p><a href="block.html">区块</a> <a href="token.html">代币</a> <a href="address.html">地址</a></p>
    </div>
    <div>
        <a target="_blank" href="http://127.0.0.1:6800/">查看爬虫运行情况</a>
    </div>
    <div id="app">
        <form @submit.prevent="on_submit">
            <h3>按区块爬取</h3>
            <p>起始区块号：<input v-model="start_block" type="number" @blur="check_start_block" class="start_block_input"></p>
            <div v-show="error_start_block" class="start_block_error" v-cloak>请填写初始区块号</div>
            <p>结束区块号：<input v-model="end_block" type="number" @blur="check_end_block" class="end_block_input"></p>
            <div v-show="error_end_block" class="end_block_error" v-cloak>请填写结束区块号</div>
            <input type="submit" name="" value="执 行" class="input_submit">
        </form>
    </div>
    <br><br>
    <h3>定时任务</h3>
    <p>开始区块：<input type="number"></p>
    <p>时间间隔：<input type="number"></p>
    <p>每次爬<input type="number">个区块</p>
    <input type="submit" value="执行" id="button_2">
    <script type="text/javascript" src="/static/js/block.js"></script>
</body>
</html>